#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:demo03.py
@time:2021/06/01
"""

def test01():
    ...
    # tuple(iterable)
    person = tuple(['1','2','3'])
    print(person)
    print(person * 3)
    # 下面就是tuple
    p1 = 1,2,3
    print(p1)

    print((x for x in range(10)))
    names = ['1','2']
    p2 = '1',names
    print(p2)
    p2[1][0] = '1111'
    print(p2)

if __name__ == '__main__':
    pass
    # test01()
    l = [1 for x in range(10)]
    print(l)
    # print(next(l))
    f = lambda x,y:x**y

    print(f(2, 2))

